//
//  YZKCarouselPicView.h
//  xiwu
//
//  Created by yzk on 14-10-9.
//  Copyright (c) 2014年 cooperLink. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CarouselPicModel.h"

/**
 *  轮播图
 */

#define TimeInterval                    5
#define kPageIndicatorTintColor         [UIColor colorWithHex:0x7c7c7c]
#define kCurrentPageIndicatorTintColor  [UIColor colorWithHex:0x04c0f6]

@class YZKCarouselPicView;

@protocol YZKCarouselPicViewDelegate <NSObject>
- (void)carouselPicView:(YZKCarouselPicView *)view didClickedPicAtIndex:(NSInteger)index;
@end

@interface YZKCarouselPicView : UIView

@property (nonatomic,assign) id<YZKCarouselPicViewDelegate> delegate;
@property (nonatomic,retain) UIScrollView   *scrollView;
@property (nonatomic,retain) NSTimer        *productsTimer;
@property (nonatomic,retain) NSMutableArray *dataArray;

- (void)reloadData;

- (void)startTimer;
- (void)pauseTimer;
- (void)deleteTimer;
- (void)createTimer;

@end
